package com.oocl.common;

public class CommonConstant {

	// 公用返回码
	public static final String SUCCESS_CODE_200 = "200";
	public static final String SUCCESS_CODE_300 = "300";
	public static final String FAIL_CODE_400 = "400";
	public static final String EXCEPTION_CODE_500 = "500";
	public static final String EXCEPTION_CODE_600 = "600"; // session过期

	// 通用STATUS状态
	public static final String STATUS_ZERO = "0";
	public static final String STATUS_ONE = "1";
	public static final String STATUS_TWO = "2";

	// 通用提示信息
	public static final String MSG_SUCCESS = "操作成功";
	public static final String MSG_FAIL = "操作失败";
	public static final String MSG_EXCEPTION = "操作异常";
	public static final String MSG_EXCEPTION_POPUP = "系统错误，请稍后再试";
	public static final String MSG_NO_LOGIN = "请先登录";
	public static final String MSG_LOGIN_NAME_EMPTY = "登录名为空";
	public static final String MSG_EXECUTE_SUCCESS = "执行成功";
	public static final String MSG_FIND_SUCCESS = "查询成功";
	public static final String MSG_FIND_FAIL = "查询失败";
	public static final String MSG_ADD_SUCCESS = "添加成功";
	public static final String MSG_ADD_FAIL = "添加失败";
	public static final String MSG_UPDATE_SUCCESS = "修改成功";
	public static final String MSG_UPDATE_FAIL = "修改失败";
	public static final String MSG_DELETE_SUCCESS = "删除成功";
	public static final String MSG_DELETE_FAIL = "删除失败";
	public static final String MSG_DATA_EXCEPT = "数据异常";
	public static final String MSG_PARAMETER_EMPTY = "参数为空";
	public static final String MSG_INPUT_NOEMPTY = "输入不能为空";
	public static final String MSG_INPUT_FORMAT_ERROR = "输入格式不正确";
	public static final String MSG_BATCH_ERROR = "批量处理出现错误";
	public static final String MSG_PARAMS_IS_NULL = "参数为空";

	// 下载
	public static final String MSG_DOWNLOAD_ERROR = "下载出现错误";

	// 账号
	public static final String MSG_USER_NOEXIST_ERROR = "用户不存在";
	public static final String MSG_LOGINNAME_EXIST_ERROR = "此用户名已存在";

	// 密码
	public static final String MSG_PASSWORD_FORMAT_ERROR = "密码必须由6-20位的字母，数字组成";
	public static final String MSG_LOGINNAME_PASSWORD_NULL_ERROR = "账号或密码不能为空";
	public static final String MSG_PASSWORD_ERROR = "登录密码错误！";

	// 修改密码
	public static final String MSG_UPDATE_PASSWORD_SUCCESS = "修改密码成功";
	public static final String MSG_UPDATE_PASSWORD_FAIL = "修改密码失败";
	public static final String MSG_UPDATE_PASSWORD_OLD_ERROR = "旧密码输入错误";
	public static final String MSG_UPDATE_PASSWORD_SAMEPASSW_ERROR = "您设置的新密码和旧密码相同";

	public static final String CONSTANT_STRING_GET = "get";
	public static final String CONSTANT_STRING_SET = "set";

	// 分页默认
	public static final int CONSTANT_PAGER_NO = 1;
	public static final int CONSTANT_PAGER_SIZE = 10;
}
